/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practicasscjp;

/**
 *
 * @author Administrador
 */
public class Main {

    public static void sum(Integer i){
        int val =i;
        val += 4;
        i = val;
        System.out.println(i);
    }

    public static void mt2(String s){
        s="dsdsd";
    }

    private static void setCliente(Cliente c){
        c.setId("abc");
        c = new Cliente("124");
        c.setId("fdsf");
    }

    public static  void arreglos(Integer[] i){
        i[1]=7;
        Integer[] a = i;
        a[0]=0;
        System.out.println(i[1]);
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("prueba");
        double monto = 100;
        double i=0.0399;
        double num_cuotas=2;
        double valor_cuotas=   (monto*(i*(Math.pow((1+i),num_cuotas))/(Math.pow((1+i),num_cuotas)-1)));
        System.out.println(">"+valor_cuotas);
        System.out.println(">"+(valor_cuotas*num_cuotas-monto));

        Integer j = 5;
        sum(j);
        System.out.println(j);
        Integer[] a = {2,4,5};
        arreglos(a);
        System.out.println(a[0]+"-"+a[1]);
        String b = new String("luis");
        mt2(b);
        System.out.println(b);

        Cliente cl = new Cliente("123");
        setCliente(cl);
        System.out.println(cl.getId());
    }

}


class Cliente{
    private String id;

    public Cliente(String id) {
        this.id = id;
    }

    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
}